/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-07-25     wyjhotice    1.0.0
 */
#ifndef APPLICATIONS_HONEYWELL_PRES_SPI_PRES_H_
#define APPLICATIONS_HONYWELL_PRES_SPI_PRES_H_

#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>

#define HONEYWELL_SENSER_RCC_ENABLE          __HAL_RCC_GPIOB_CLK_ENABLE()
#define HONEYWELL_SENSER_CS_PIN              GPIO_PIN_12
#define HONEYWELL_SENSER_CS_GPIO             GPIOB
#define HONEYWELL_SPI                        "spi2"
#define HONEYWELL_SPI0                       "spi20"

int32_t get_pressure_and_temp(void);
#endif /* APPLICATIONS_HONEYWELL_PRES_SPI_PRES_H_ */
